         <!-- START OF MAINCOL -->
          <div class="MainCol AM_BookPage">

              <h1 class="left">咨询师信息管理</h1>
              <div class="right"><a href="<?php echo Yii::app()->baseUrl.'/index.php/admin/psychologists/add'?>" class="Blue_btn" title="添加咨询师"><span><?= CHtml::image(Yii::app()->baseUrl.'/images/add_icon.gif', '', array('class' => 'icon')); ?> 添加咨询师	</span></a>
              </div>
              <br class="clear" />
              
              <span class="NormalFont SmallFont">
                  <?= CHtml::image(Yii::app()->baseUrl.'/images/home_icon.gif', '主页'); ?> > 咨询师信息 > 咨询师信息管理
               </span><br /><br />
              
              <div class="Titlebox box"><!-- DON'T DELETE --></div>
              
              <?php if(Yii::app()->user->hasFlash('message')) : ?>
              <div class="SuccessfulBox Smallbox">
                <span class="Successful"> <?php echo Yii::app()->user->getFlash('message'); ?></span>
              </div>
              <?php endif; ?>
              
              <div class="DisplayBox_top Smallbox">
              
              	  <b class="left SmallFont">共 <span class="Blue"><?php echo $count; ?></span> 条记录</b>
                  
                  <br class="clear" />
              </div>
              
              <ul class="Lists Smallbox">
              <?php foreach($psychologists as $k => $psychologist) { ?>
              	  <li <?php if($k%2 == 1) { ?>class="ThinGrey_bg"<?php } ?>>
                      
					<span class="ImgBox">
						<span class="Btm">
							<?php echo CHtml::link(CHtml::image(Psychologists::avatarUrl($psychologist->avatar), $psychologist->psychologistName), array('/admin/psychologists/update', 'id' => $psychologist->psychologistId)); ?>
						</span>
					</span>
                      <span class="ContentBox">
                          <p class="Smallbox">
	                          	<b><?php echo CHtml::link($psychologist->psychologistName, array('admin/psychologists/update', 'id' => $psychologist->psychologistId), array('class' => 'BlueLink')); ?></b>
                          </p>
                          
                          <p class="Smallbox">
                          <label>咨询师E-mail</label>: <?php echo $psychologist->psychologistEmail; ?><br />
                          <label>咨询师QQ</label>: <?php echo $psychologist->psychologistQq; ?><br />
                          <label>咨询师简介</label>: <?php echo nl2br(htmlspecialchars($psychologist->psychologistInstro)); ?><br />
                          </p>
                      </span>
                      <br class="clear" />
                      
                      <span class="Rated"><?php echo CHtml::link('删除', array('/admin/psychologists/delete', 'id' => $psychologist->psychologistId), array('confirm' => '确定要删除这个咨询师的信息吗？', 'class' => 'Delete')); ?></span>
                </li>
                <?php } ?>
                
              </ul>
              
              
              <div class="DisplayBox_btm">
              
              	  <b class="left SmallFont">共 <span class="Blue"><?php echo $count; ?></span> 条记录</b>
                  
                  <br class="clear" />       
              </div>
              
        </div>
          <!-- END OF MAINCOL -->